<%--
  Created by IntelliJ IDEA.
  User: teacher
  Date: 2022/7/29
  Time: 9:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>访问作用域</title>
</head>
<body>
model:${model}<br/>
map:${map}<br/>
modelMap1:${modelMap1}<br/>
modelMap2:${modelMap2}<br/>
request:${msg}<br/>
<hr/>
model:${param.model}<br/>
map:${param.map}<br/>
modelMap1:${param.modelMap1}<br/>
modelMap2:${param.modelMap2}<br/>
<h1>访问request作用域</h1>
request:${requestScope.user.username}<br/>
u:${requestScope.u.username}<br/>
<select>
    <option value="-1">请选择</option>
    <c:forEach items="${users}" var="user">
        <option value="${user.id}">${user.username}</option>
    </c:forEach>
</select>
<h1>访问session作用域</h1>
user:${sessionScope.user.username}
</body>
</html>
